import { createRouter, createWebHistory } from 'vue-router'
import NotFoundPage from '@/views/404.vue'
import Index from '@/views/index.vue'
import Image from '@/views/image.vue'

const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: '/',
            component: Index
        },
        {
            path: '/img',
            component: Image
        },
        {
            path: '/:pathMatch(.*)*',
            name: '404',
            component: NotFoundPage
        }
    ]
})

export default router
